// 房间
import {
    ajaxP,
    ajaxBack
} from '@/utils/data/request'

export function list(params: any) {
    return ajaxBack({
        url: `room/list`,
        method: 'post',
        data: params
    })
}

export function add(param: any) {
    return ajaxP('room/create', param)
}

export function edit(param: any) {
    return ajaxP('room/edit', param)
}

export function del(area_sn: any) {
    return ajaxP('room/delete', { area_sn })
}